home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / zendisk1.zip / LST8-1.ASM < prev    next >
Assembly Source File  |  1990-02-15  |  272b  |  19 lines

  1. ;
  2. ; *** Listing 8-1 ***
  3. ;
  4. ; Copies a byte via AH, with memory addressed with
  5. ; mod-reg-rm direct addressing.
  6. ;
  7.     jmp    Skip
  8. ;
  9. SourceValue    db    1
  10. DestValue    db    0
  11. ;
  12. Skip:
  13.     call    ZTimerOn
  14.     rept    1000
  15.     mov    ah,[SourceValue]
  16.     mov    [DestValue],ah
  17.     endm
  18.     call    ZTimerOff
  19.